libmystd.so:mystdio.o mystring.o
	@gcc -o $@ $^ -shared
	@echo "build $^ to $@ ... done"
%.o:%.c
	@gcc -c $< -fPIC
	@echo "compiling $< to $@ ... done" 
.PHONY:clean
clean:
	@rm -rf *.o *.so
	@echo "clean ... done"

.PHONY:output
output:
	@mkdir -p stdc/include
	@mkdir -p stdc/lib
	@cp *.h stdc/include
	@cp *.so stdc/lib
	@tar -czf stdc.tgz stdc
	@echo "output ... done"

